This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new b7a4cfc add permalinks to testing and royaleunit docs pages
b7a4cfc is described below
commit b7a4cfc562ee56bae2206574b22d3ae84b4a09b3
Author: Carlos Rovira <[email protected]>
AuthorDate: Tue Oct 1 11:01:20 2019 +0200
add permalinks to testing and royaleunit docs pages
---
features/as3.md | 2 +-
testing.md | 2 +-
testing/royaleunit.md | 10 ++++++----
testing/royaleunit/create-a-unit-test.md | 18 ++++++++++--------
testing/royaleunit/metadata.md | 2 ++
testing/royaleunit/run-unit-tests-with-ant.md | 2 ++
6 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/features/as3.md b/features/as3.md
index 16fccc9..2cc3a2f 100644
--- a/features/as3.md
+++ b/features/as3.md
@@ -28,7 +28,7 @@ ActionScript 3 is an object-oriented programming language
originally created by
The following code snippet shows some of ActionScript's core syntax:
-```actionscript
+```as3
package org.apache.royale
{
public class WelcomeToActionScript
diff --git a/testing.md b/testing.md
index c3cfefa..27c08d7 100644
--- a/testing.md
+++ b/testing.md
@@ -37,4 +37,4 @@ Over time we will add pointers to general testing guides, and
tips and tricks mo
## Unit tests
-Apache Royale includes the [RoyaleUnit](testing/royaleunit.html) library for
unit testing.
+Apache Royale includes the [RoyaleUnit](testing/royaleunit) library for unit
testing.
diff --git a/testing/royaleunit.md b/testing/royaleunit.md
index 0ac4d43..a90c673 100644
--- a/testing/royaleunit.md
+++ b/testing/royaleunit.md
@@ -16,6 +16,8 @@
layout: docpage
title: RoyaleUnit
+description: A unit testing library for Apache Royale
+permalink: /testing/royaleunit
---
# RoyaleUnit
@@ -24,7 +26,7 @@ A unit testing library for Apache Royale
## What RoyaleUnit does
-_Text coming soon_
+RoyaleUnit is an extensible testing framework for ActionScript classes and
provides extensions for working with the Royale Framework. The RoyaleUnit
framework is used to automate unit and integration testing.
## Requirements
@@ -32,9 +34,9 @@ Apache RoyaleUnit is designed to work with [Apache
Ant](https://ant.apache.org){
## Tutorials
-* [Create a unit test](testing/royaleunit/create-a-unit-test.html)
-* [Run unit tests with Apache
Ant](testing/royaleunit/run-unit-tests-with-ant.html)
+* [Create a unit test](testing/royaleunit/create-a-unit-test)
+* [Run unit tests with Apache Ant](testing/royaleunit/run-unit-tests-with-ant)
## Reference
-* [Metadata](testing/royaleunit/metadata.html)
+* [Metadata](testing/royaleunit/metadata)
diff --git a/testing/royaleunit/create-a-unit-test.md
b/testing/royaleunit/create-a-unit-test.md
index 40b9000..55587e0 100644
--- a/testing/royaleunit/create-a-unit-test.md
+++ b/testing/royaleunit/create-a-unit-test.md
@@ -16,6 +16,8 @@
layout: docpage
title: Create a unit test
+description: How to create a unit test
+permalink: /testing/royaleunit/create-a-unit-test
---
# Create a unit test
@@ -24,9 +26,9 @@ An example of creating unit tests with RoyaleUnit
## Test cases
-A test case is a class that defines a collection of tests. Each test is
written as a method of a class. Each test method should be marked with
[`[Test]` metadata](testing/royaleunit/metadata.html#test).
+A test case is a class that defines a collection of tests. Each test is
written as a method of a class. Each test method should be marked with
[`[Test]` metadata](testing/royaleunit/metadata#test).
-```actionscript
+```as3
package com.example
{
import org.apache.royale.test.Assert;
@@ -50,16 +52,16 @@ package com.example
}
```
-Each test method should be marked with [`[Test]`
metadata](testing/royaleunit/metadata.html#test):
+Each test method should be marked with [`[Test]`
metadata](testing/royaleunit/metadata#test):
-```actionscript
+```as3
[Test]
public function testSimpleAdd():void
```
The `org.apache.royale.test.Assert` class defines a number of assertion
methods that may be useful for testing. In this case, use `assertEquals()` to
compare two values:
-```actionscript
+```as3
Assert.assertEquals(result, 5);
```
@@ -107,13 +109,13 @@ Use an instance of the `RoyaleUnitCore` class to run unit
tests:
The `TraceListener` class tells `RoyaleUnitCore` displays the test results in
the debug console:
-```actionscript
+```as3
core.addListener(new TraceListener());
```
Pass one or more test classes to the `runClasses()` method of the
`RoyaleUnitCore` instance:
-```actionscript
+```as3
core.runClasses(MyFirstTests);
```
@@ -123,7 +125,7 @@ Compile this application and run it using a debugger to see
the results of the t
mxmlc -keep-as3-metadata+=Test MyTests.mxml
```
-> Don't forget to tell the compiler to keep any [RoyaleUnit
metadata](testing/royaleunit/metadata.html) that is used in the application. In
this case, only `[Test]` metadata is used, but several other tags are available.
+> Don't forget to tell the compiler to keep any [RoyaleUnit
metadata](testing/royaleunit/metadata) that is used in the application. In this
case, only `[Test]` metadata is used, but several other tags are available.
The debug console output should look similar to the following:
diff --git a/testing/royaleunit/metadata.md b/testing/royaleunit/metadata.md
index da424e2..7b2eecc 100644
--- a/testing/royaleunit/metadata.md
+++ b/testing/royaleunit/metadata.md
@@ -16,6 +16,8 @@
layout: docpage
title: Metadata
+description: RoyaleUnit Metadata tags
+permalink: /testing/royaleunit/metadata
---
# RoyaleUnit metadata
diff --git a/testing/royaleunit/run-unit-tests-with-ant.md
b/testing/royaleunit/run-unit-tests-with-ant.md
index 46895aa..d4fb03b 100644
--- a/testing/royaleunit/run-unit-tests-with-ant.md
+++ b/testing/royaleunit/run-unit-tests-with-ant.md
@@ -16,6 +16,8 @@
layout: docpage
title: Run unit tests with Apache Ant
+description: How to run unit test with Ant
+permalink: /testing/royaleunit/run-unit-tests-with-ant
---
# Run unit tests with Apache Ant