' /**
@@ -137,7 +137,7 @@ TestRunner.brs
if nodeStatResults <> invalid then
Rooibos_Stats_mergeTotalStatistic(totalStatObj, nodeStatResults)
else
- print " ERROR! The node " ; nodeType ; " did not return stats from the Rooibos_RunNodeTests method. This usually means you are not importing rooibosDist.brs, or rooibosFunctionMap.brs. Please refer to : https://github.com/georgejecook/rooibos/blob/master/docs/index.md#testing-scenegraph-nodes"
+ print " ERROR! The node " ; nodeType ; " did not return stats from the Rooibos_RunNodeTests method. This usually means you are not importing rooibosDist.brs, or rooibosFunctionMap.brs. Please refer to : https://github.com/rokucommunity/rooibos/blob/master/docs/index.md#testing-scenegraph-nodes"
end if
m.testScene.RemoveChild(node)
else
diff --git a/docs/index.md b/docs/index.md
index f158c89b..960487ae 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -34,8 +34,8 @@ Simple, mocha-inspired, flexible, fun Brightscript test framework for ROKU apps
- [Controlling which tests run](#controlling-which-tests-run)
- [Integrating with your app setup and util methods](#integrating-with-your-app-and-utils)
- [Using mocks and stubs](#using-mocks-and-stubs)
- - [API reference](https://georgejecook.github.io/rooibos)
- - [assertion reference](https://georgejecook.github.io/rooibos/module-BaseTestSuite.html)
+ - [API reference](https://rokucommunity.github.io/rooibos)
+ - [assertion reference](https://rokucommunity.github.io/rooibos/module-BaseTestSuite.html)
- [Integrating with your CI](#integrating-with-your-ci)
- [Advanced Setup](#advanced-setup)
- [Code coverage](#generate-code-coverage)
@@ -87,7 +87,7 @@ Roku will perform poorly if roku's rendezvous tracking is enabled, when launchin
### I do not have a project that uses the brighterscript transpiler
-You will need to setup a bsc project to use rooibos 4. Here is an [example project](https://github.com/georgejecook/rooibos-roku-sample) you can clone.
+You will need to setup a bsc project to use rooibos 4. Here is an [example project](https://github.com/rokucommunity/rooibos-roku-sample) you can clone.
The easiest thing to do is to clone that project and
- copy bsconfig.json
@@ -105,7 +105,7 @@ You can do the setup from scratch as followes:
"build-tests": "npx bsc"
}
```
-5. Add a bsconfig.json file. The easiest thing to do is copy the file from the [example project](https://github.com/georgejecook/rooibos-roku-sample)
+5. Add a bsconfig.json file. The easiest thing to do is copy the file from the [example project](https://github.com/rokucommunity/rooibos-roku-sample)
6. Setup a task to run `npm run build-tests`, in `.vscode/tasks.json`
7. Setup a launch task to run the build-tests task, from the previous step, in `.vscode/launch.json`
8. Create some tests
@@ -176,7 +176,7 @@ Here is the information converted into a Markdown table:
| reporters? 2 | string[] | An array of factory functions/classes which implement `rooibos.BaseTestReporter`. Built-in reporters include `console` and `junit`. Defaults to `["console"]`. |
**1** This parameter is deprecated, use `reporters` instead. When specified, the reporter will be appended to the list of `reporters`.
-**2** Custom reporters are not currently supported on [node-based tests](#testing-nodes), because rooibos does not know which files it should include in the generated test components. This will be addressed in a future Rooibos version (see issue [#266](https://github.com/georgejecook/rooibos/issues/266)).
+**2** Custom reporters are not currently supported on [node-based tests](#testing-nodes), because rooibos does not know which files it should include in the generated test components. This will be addressed in a future Rooibos version (see issue [#266](https://github.com/rokucommunity/rooibos/issues/266)).
## Creating test suites
@@ -549,7 +549,7 @@ If a test case has a `@only` or `@ignore` annotation, the _params_ will execute
### Node specific asserts
-Rooibos adds some node specifc asserts, which are fully described in the [assertion reference](https://georgejecook.github.io/rooibos/module-BaseTestSuite.html). These are:
+Rooibos adds some node specifc asserts, which are fully described in the [assertion reference](https://rokucommunity.github.io/rooibos/module-BaseTestSuite.html). These are:
- assertNodeCount
- assertNodeNotCount
@@ -562,7 +562,7 @@ Rooibos adds some node specifc asserts, which are fully described in the [asse
### Full list of asserts
-The full list of asserts can be found in the documentation - [assertion reference](https://georgejecook.github.io/rooibos/module-BaseTestSuite.html)
+The full list of asserts can be found in the documentation - [assertion reference](https://rokucommunity.github.io/rooibos/module-BaseTestSuite.html)
## Understanding test output
Rooibos reports test output in an easy to read hierarchical manner.
@@ -1014,8 +1014,8 @@ namespace Tests
@it("HelloFromNode")
function helloFromNode_simple()
'bs:disable-next-line
- text = HelloFromNode("georgejecook", 12)
- m.assertEqual(text, "HELLO georgejecook" + " age:" + stri(12))
+ text = HelloFromNode("rokucommunity", 12)
+ m.assertEqual(text, "HELLO rokucommunity" + " age:" + stri(12))
end function
...
```
@@ -1078,8 +1078,8 @@ namespace tests
@it("HelloFromNode")
function _()
'bs:disable-next-line
- text = HelloFromNode("georgejecook", 12)
- m.AssertEqual(text, "HELLO georgejecook" + " age:" + stri(12))
+ text = HelloFromNode("rokucommunity", 12)
+ m.AssertEqual(text, "HELLO rokucommunity" + " age:" + stri(12))
m.done()
end function
@@ -1266,4 +1266,3 @@ The report is contained after the LCOV.INFO file. Given that that the console ou
e.g.
![coverage output](images/lcov.png)
-
diff --git a/framework/src/source/TestRunner.bs b/framework/src/source/TestRunner.bs
index ee5d6dfd..adffa227 100644
--- a/framework/src/source/TestRunner.bs
+++ b/framework/src/source/TestRunner.bs
@@ -271,7 +271,7 @@ namespace rooibos
testSuite.stats.merge(nodeResults.stats)
m.mergeGroups(testSuite, nodeResults.groups)
else
- ? " ERROR! The node test"; testSuite.name; " did not indicate test completion. Did you call m.done() in your test? Did you correctly configure your node test? Please refer to : https://github.com/georgejecook/rooibos/blob/master/docs/index.md#testing-scenegraph-nodes"
+ ? " ERROR! The node test"; testSuite.name; " did not indicate test completion. Did you call m.done() in your test? Did you correctly configure your node test? Please refer to : https://github.com/rokucommunity/rooibos/blob/master/docs/index.md#testing-scenegraph-nodes"
end if
m.testScene.removeChild(node)
return
@@ -353,4 +353,4 @@ namespace rooibos
function onTestSuiteComplete()
m.testRunner.onTestSuiteComplete()
end function
-end namespace
\ No newline at end of file
+end namespace
diff --git a/package.json b/package.json
index c2b28b92..0846feab 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,10 @@
"name": "rooibos",
"version": "1.0.0",
"description": "simple, flexible, fun brightscript test framework for roku scenegraph apps",
+ "scripts": {
+ "build": "npx bsc",
+ "test": "npx bsc --project ./bsconfig-tests.json"
+ },
"files": [
"dist/**/!(manifest)*"
],
@@ -12,7 +16,7 @@
},
"repository": {
"type": "git",
- "url": "https://github.com/georgejecook/rooibos.git"
+ "url": "https://github.com/rokucommunity/rooibos.git"
},
"keywords": [
"ropm",
@@ -25,15 +29,11 @@
"author": "George Cook",
"license": "MIT",
"bugs": {
- "url": "https://github.com/georgejecook/rooibos/issues"
+ "url": "https://github.com/rokucommunity/rooibos/issues"
},
"ropm": {
"rootDir": "src",
"packageRootDir": "dist"
},
- "homepage": "https://github.com/georgejecook/rooibos#readme",
- "scripts": {
- "build": "npx bsc",
- "test": "npx bsc --project ./bsconfig-tests.json"
- }
+ "homepage": "https://github.com/rokucommunity/rooibos#readme"
}
diff --git a/tests/package.json b/tests/package.json
index 2fe25816..7d99af4f 100644
--- a/tests/package.json
+++ b/tests/package.json
@@ -13,7 +13,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/georgejecook/rooibos.git"
+ "url": "git+https://github.com/rokucommunity/rooibos.git"
},
"keywords": [
"brightscript",
@@ -24,7 +24,7 @@
"author": "George Cook",
"license": "MIT",
"bugs": {
- "url": "https://github.com/georgejecook/rooibos/issues"
+ "url": "https://github.com/rokucommunity/rooibos/issues"
},
- "homepage": "https://github.com/georgejecook/rooibos#readme"
+ "homepage": "https://github.com/rokucommunity/rooibos#readme"
}
diff --git a/tests/src/source/NodeExample.spec.bs b/tests/src/source/NodeExample.spec.bs
index ef470b7a..f635ed08 100644
--- a/tests/src/source/NodeExample.spec.bs
+++ b/tests/src/source/NodeExample.spec.bs
@@ -18,8 +18,8 @@ namespace tests
@it("HelloFromNode")
function _()
'bs:disable-next-line
- text = HelloFromNode("georgejecook", 12)
- m.AssertEqual(text, "HELLO georgejecook" + " age:" + stri(12))
+ text = HelloFromNode("rokucommunity", 12)
+ m.AssertEqual(text, "HELLO rokucommunity" + " age:" + stri(12))
m.done()
end function
@@ -97,4 +97,4 @@ end namespace
function OnTimer()
? " TIMER IS FIRED"
m.testSuite.done()
-end function
\ No newline at end of file
+end function