Skip to content

Commit 87eb6f5

Browse files
author
Jules Amosah
authored
Replace references to codepress with codeceptjs (#179)
1 parent 66eac69 commit 87eb6f5

25 files changed

+38
-37
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
An interactive, graphical test runner for [CodeceptJS](https://codecept.io).
44

55

6-
![codeceptui](https://github.com/codeceptjs/ui/raw/master/codecept-ui2.gif)
6+
![codeceptui](codecept-ui2.gif)
77

88
* Runs as Electron app or as a web server
99
* Headless & window mode supported
@@ -44,7 +44,7 @@ npx codecept run --config tests/codecept.conf.js
4444

4545
### WebServer Mode
4646

47-
![](https://github.com/codeceptjs/ui/raw/master/codeceptui.gif)
47+
![webserver mode](codeceptui.gif)
4848

4949
Run CodeceptUI as a web server (recommended for headless mode, remote debug):
5050

@@ -85,19 +85,19 @@ npx codecept-ui --app --wsPort=4444
8585

8686
## Development
8787

88-
See [CONTRIBUTING.md](https://github.com/codeceptjs/ui/blob/master/.github/CONTRIBUTING.md)
88+
See [CONTRIBUTING.md](.github/CONTRIBUTING.md)
8989

9090

9191
## Start CodeceptUI with debug output
9292

93-
codepress uses the debug package to output debug information. This is useful to troubleshoot problems or just to see what codepress is doing. To turn on debug information do
93+
CodeceptUI uses the [debug](https://github.com/debug-js/debug) package to output debug information. This is useful to troubleshoot problems or just to see what CodeceptUI is doing. To turn on debug information do
9494

9595
```
9696
# verbose: get all debug information
97-
DEBUG=codepress:* npx codecept-ui
97+
DEBUG=codeceptjs:* npx codecept-ui
9898
9999
# just get debug output of one module
100-
DEBUG=codepress:codeceptjs-factory npx codecept-ui
100+
DEBUG=codeceptjs:codeceptjs-factory npx codecept-ui
101101
```
102102

103103
# Credits
@@ -120,5 +120,6 @@ Thanks all for the contributions!
120120
<a href="https://github.com/kaflan"><img src="https://avatars3.githubusercontent.com/u/3959504?v=4" title="kaflan" width="80" height="80"></a>
121121
<a href="https://github.com/lukasf98"><img src="https://avatars2.githubusercontent.com/u/22434650?v=4" title="lukasf98" width="80" height="80"></a>
122122
<a href="https://github.com/geilix10"><img src="https://avatars3.githubusercontent.com/u/16301998?v=4" title="geilix10" width="80" height="80"></a>
123+
<a href="https://github.com/Teomik129"><img src="https://avatars3.githubusercontent.com/u/23395221?v=4" title="Teomik129" width="80" height="80"></a>
123124

124125
[//]: contributor-faces

bin/codecept-ui.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
const debug = require('debug')('codepress:codepress');
2+
const debug = require('debug')('codeceptjs:ui');
33

44
// initialize CodeceptJS and return startup options
55
const path = require('path');

lib/api/get-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const codeceptjsFactory = require('../model/codeceptjs-factory');
22

33
module.exports = (req, res) => {
4-
const internalHelpers = Object.keys(codeceptjsFactory.codepressHelpersConfig.helpers);
4+
const internalHelpers = Object.keys(codeceptjsFactory.codeceptjsHelpersConfig.helpers);
55
const { config, container } = codeceptjsFactory.getInstance();
66
const helpers = Object.keys(container.helpers()).filter(helper => internalHelpers.indexOf(helper) < 0);
77

lib/api/get-scenario-status.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:get-scenario-status');
1+
const debug = require('debug')('codeceptjs:get-scenario-status');
22
const scenarioStatusRepository = require('../model/scenario-status-repository');
33

44
module.exports = (req, res) => {

lib/api/get-snapshot-html.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:get-snapshot-html');
1+
const debug = require('debug')('codeceptjs:get-snapshot-html');
22
const snapshotStore = require('../model/snapshot-store');
33

44
module.exports = (req, res) => {

lib/api/get-snapshot-image.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:get-snapshot-image');
1+
const debug = require('debug')('codeceptjs:get-snapshot-image');
22
const snapshotStore = require('../model/snapshot-store');
33
const fs = require('fs');
44
const path = require('path');

lib/api/list-actions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function _interopDefault(ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex.default : ex; }
22
const acorn = require('acorn');
33
const parser = _interopDefault(require('parse-function'))({ parse: acorn.parse, ecmaVersion: 11 });
4-
const debug = require('debug')('codepress:codeceptjs-factory');
4+
const debug = require('debug')('codeceptjs:codeceptjs-factory');
55
const fs = require('fs');
66
const path = require('path');
77
const codeceptjsFactory = require('../model/codeceptjs-factory');

lib/api/new-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:run-scenario');
1+
const debug = require('debug')('codeceptjs:run-scenario');
22
const wsEvents = require('../model/ws-events');
33
const pause = require('../codeceptjs/brk');
44
const { event } = require('codeceptjs');

lib/api/run-scenario-parallel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const os = require('os');
2-
const debug = require('debug')('codepress:run-scenario-multiple');
2+
const debug = require('debug')('codeceptjs:run-scenario-multiple');
33
const wsEvents = require('../model/ws-events');
44
const { event } = require('codeceptjs');
55
const codeceptjsFactory = require('../model/codeceptjs-factory');

lib/api/run-scenario.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:run-scenario');
1+
const debug = require('debug')('codeceptjs:run-scenario');
22
const wsEvents = require('../model/ws-events');
33
const { event } = require('codeceptjs');
44
const codeceptjsFactory = require('../model/codeceptjs-factory');

lib/api/stop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:run-scenario');
1+
const debug = require('debug')('codeceptjs:run-scenario');
22
const { event } = require('codeceptjs');
33

44
module.exports = async (req, res) => {

lib/codeceptjs/console-recorder.helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:console-recorder-helper');
1+
const debug = require('debug')('codeceptjs:console-recorder-helper');
22
const wsEvents = require('../model/ws-events');
33
const { v4: uuid } = require('uuid');
44
// eslint-disable-next-line no-undef

lib/codeceptjs/network-recorder.helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:network-helper');
1+
const debug = require('debug')('codeceptjs:network-helper');
22
const wsEvents = require('../model/ws-events');
33

44
// eslint-disable-next-line no-undef

lib/codeceptjs/realtime-reporter.helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:realtime-reporter-helper');
1+
const debug = require('debug')('codeceptjs:realtime-reporter-helper');
22
const assert = require('assert');
33
const { nanoid } = require('nanoid');
44
const scenarioStatusRepository = require('../model/scenario-status-repository');

lib/codeceptjs/reporter-utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:reporter-utils');
1+
const debug = require('debug')('codeceptjs:reporter-utils');
22
const assert = require('assert');
33
const crypto = require('crypto');
44

lib/model/codeceptjs-factory.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:codeceptjs-factory');
1+
const debug = require('debug')('codeceptjs:codeceptjs-factory');
22
const path = require('path');
33
const { codecept: Codecept, container, config } = require('codeceptjs');
44

@@ -15,7 +15,7 @@ module.exports = new class CodeceptjsFactory {
1515
this.configFile = configFile;
1616
}
1717

18-
loadCodepressHelpers() {
18+
loadCodeceptJSHelpers() {
1919
debug('Loading helpers...');
2020
const RealtimeReporterHelper = require('../codeceptjs/realtime-reporter.helper');
2121
const NetworkRecorderHelper = require('../codeceptjs/network-recorder.helper');
@@ -86,8 +86,8 @@ module.exports = new class CodeceptjsFactory {
8686
// create helpers, support files, mocha
8787
container.create(cfg, opts);
8888

89-
this.codepressHelpersConfig = this.loadCodepressHelpers(container);
90-
container.append(this.codepressHelpersConfig);
89+
this.codeceptjsHelpersConfig = this.loadCodeceptJSHelpers(container);
90+
container.append(this.codeceptjsHelpersConfig);
9191

9292
debug('Running hooks...');
9393
codecept.runHooks();

lib/model/open-in-editor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:open-in-editor');
1+
const debug = require('debug')('codeceptjs:open-in-editor');
22
const { execSync } = require('child_process');
33
const { getSettings } = require('./settings-repository');
44

lib/model/profile-repository.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const debug = require('debug')('codepress:profile-repository');
1+
const debug = require('debug')('codeceptjs:profile-repository');
22
const fs = require('fs');
33
const path = require('path');
44

5-
const CodepressDir = path.join(process.cwd(), '.codepress');
6-
const ProfileConfigFile = path.join(CodepressDir, 'profile.conf.js');
5+
const CodeceptJSDir = path.join(process.cwd(), '.codeceptjs');
6+
const ProfileConfigFile = path.join(CodeceptJSDir, 'profile.conf.js');
77

88
const getProfiles = () => {
99
if (!fs.existsSync(ProfileConfigFile)) return;

lib/model/scenario-repository.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:scenario-repository');
1+
const debug = require('debug')('codeceptjs:scenario-repository');
22
const fs = require('fs');
33
const path = require('path');
44
const chokidar = require('chokidar');

lib/model/scenario-status-repository.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const assert = require('assert');
2-
const debug = require('debug')('codepress:scenario-status-repository');
2+
const debug = require('debug')('codeceptjs:scenario-status-repository');
33
const fs = require('fs');
44
const path = require('path');
55
const mkdir = require('../utils/mkdir');

lib/model/settings-repository.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:settings-repository');
1+
const debug = require('debug')('codeceptjs:settings-repository');
22

33
const settings = {};
44

lib/model/snapshot-store/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:snapshot-store');
1+
const debug = require('debug')('codeceptjs:snapshot-store');
22
const assert = require('assert');
33
const fs = require('fs');
44
const path = require('path');

lib/model/testrun-repository.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const debug = require('debug')('codepress:testRunRepository');
1+
const debug = require('debug')('codeceptjs:testRunRepository');
22
const fs = require('fs');
33
const path = require('path');
44
const mkdir = require('../utils/mkdir');

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</head>
1616
<body>
1717
<noscript>
18-
<strong>We're sorry but codepress doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
18+
<strong>We're sorry but CodeceptUI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1919
</noscript>
2020
<div id="app"></div>
2121
<!-- built files will be auto injected -->

src/services/selector-finder.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const findShortSelector = (doc, el) => {
6161

6262
export const dehighlightAll = doc => {
6363
try {
64-
const oldOutlines = doc.querySelectorAll('.codepress-outline');
64+
const oldOutlines = doc.querySelectorAll('.codeceptjs-outline');
6565
oldOutlines.forEach(ol => ol.remove());
6666
} catch (err) {
6767
// eslint-disable-next-line
@@ -81,7 +81,7 @@ export const highlightElement = (el, doc, win) => {
8181
const highlightColor = 'hsl(348, 100%, 61%)';
8282

8383
var newOutline = doc.createElement('div');
84-
newOutline.className = 'codepress-outline';
84+
newOutline.className = 'codeceptjs-outline';
8585
newOutline.style.position = 'absolute';
8686
newOutline.style['z-index'] = '9999999999';
8787
newOutline.style['color'] = 'white';
@@ -98,7 +98,7 @@ export const highlightElement = (el, doc, win) => {
9898
newOutline.style.left = rect.left + win.pageXOffset + 'px';
9999

100100
const textContainer = doc.createElement('div');
101-
textContainer.className = 'codepress-outline';
101+
textContainer.className = 'codeceptjs-outline';
102102
textContainer.append(doc.createTextNode(shortestSelector));
103103
textContainer.style.position = 'absolute';
104104
textContainer.style['z-index'] = '9999999999';

0 commit comments

Comments
 (0)