Skip to content

Commit

Permalink
Hotfix/dev constraint (GSA#727)
Browse files Browse the repository at this point in the history
* hotfix post scaffold run

* Update dev-constraint.js

* remove conflicting legacy files
  • Loading branch information
wandmagic authored and brian-ruf committed Nov 8, 2024
1 parent 46c4441 commit 0736efe
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 240 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build:validation-ui": "cd src/web && npm install && npm run build && cd ../..",
"federalist": "make init-repo && npm run build:validation-ui && npm run link:validation-ui",
"link:validation-ui": "ln -sf ./src/web/dist _site",
"test": "cross-env-shell NODE_OPTIONS=\"--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node\" cucumber-js --parallel 4 2>/dev/null 2>NUL",
"test": "cross-env-shell NODE_OPTIONS=\"--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node\" cucumber-js",
"test:parallel": "cross-env-shell NODE_OPTIONS=\"--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node\" cucumber-js --parallel 4 2>/dev/null 2>NUL",
"test:failed": "cross-env NODE_OPTIONS=\"--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node\" cucumber-js -p rerun",
"test:constraints": "cross-env NODE_OPTIONS=\"--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node\" cucumber-js --tags @constraints",
"test:coverage": "cross-env NODE_OPTIONS=\"--loader ts-node/esm --no-warnings --experimental-specifier-resolution=node\" cucumber-js --tags @full-coverage",
Expand Down
6 changes: 5 additions & 1 deletion src/scripts/dev-constraint.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,11 @@ async function runCucumberTest(constraintId, testFiles) {

if (scenarioLines.length === 0) {
console.error(`No scenarios found for constraintId: ${constraintId}`);
execSync("npm run test:coverage",{stdio:'ignore'});
execSync("npm run-script test:coverage", {
shell: true,
stdio: 'ignore',
cwd: path.join(__dirname, '..', '..')
});
scenarioLines = getScenarioLineNumbers(featureFile, constraintId,testFiles);
if(scenarioLines.length===0){
return false;
Expand Down
23 changes: 0 additions & 23 deletions src/validations/constraints/tool/package.json

This file was deleted.

24 changes: 0 additions & 24 deletions src/validations/constraints/tool/spec.md

This file was deleted.

32 changes: 0 additions & 32 deletions src/validations/constraints/tool/src/index.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/validations/constraints/tool/src/oscal-cli.ts

This file was deleted.

35 changes: 0 additions & 35 deletions src/validations/constraints/tool/src/test-case.ts

This file was deleted.

108 changes: 0 additions & 108 deletions src/validations/constraints/tool/tsconfig.json

This file was deleted.

0 comments on commit 0736efe

Please sign in to comment.