Compare commits

..

1 Commits

Author SHA1 Message Date
Jozef Izso
fc794fdbe8 Create instructions file for Copilot 2025-07-08 10:57:23 +02:00
3 changed files with 19 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
---
applyTo: '**'
---
Instructions:
- Ensure Node.js 20 is installed and used for all development and CI tasks.
- Do not update the Node.js runtime to versions newer than 20.
- Install all dependencies using `npm install`.
- Use TypeScript for all source code; ensure `tsconfig.json` is present and configured.
- Use `npm test` to run tests; ensure all tests pass before committing changes.
- Validate changes by running `npm run all` before submitting pull requests or merging.
- This project is a GitHub Actions action; ensure compatibility with GitHub Actions workflows.
- After validating changes, create a new commit with the `dist/` directory included.
- Document any changes to the action's inputs, outputs, or behavior in the README.

4
dist/index.js generated vendored
View File

@@ -837,12 +837,12 @@ class DotnetNunitParser {
.map(suite => suite.$.name) .map(suite => suite.$.name)
.join('.'); .join('.');
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name; const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name;
let existingSuite = result.find(suite => suite.name === suiteName); let existingSuite = result.find(existingSuite => existingSuite.name === suiteName);
if (existingSuite === undefined) { if (existingSuite === undefined) {
existingSuite = new test_results_1.TestSuiteResult(suiteName, []); existingSuite = new test_results_1.TestSuiteResult(suiteName, []);
result.push(existingSuite); result.push(existingSuite);
} }
let existingGroup = existingSuite.groups.find(group => group.name === groupName); let existingGroup = existingSuite.groups.find(existingGroup => existingGroup.name === groupName);
if (existingGroup === undefined) { if (existingGroup === undefined) {
existingGroup = new test_results_1.TestGroupResult(groupName, []); existingGroup = new test_results_1.TestGroupResult(groupName, []);
existingSuite.groups.push(existingGroup); existingSuite.groups.push(existingGroup);

View File

@@ -77,13 +77,13 @@ export class DotnetNunitParser implements TestParser {
.join('.') .join('.')
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name
let existingSuite = result.find(suite => suite.name === suiteName) let existingSuite = result.find(existingSuite => existingSuite.name === suiteName)
if (existingSuite === undefined) { if (existingSuite === undefined) {
existingSuite = new TestSuiteResult(suiteName, []) existingSuite = new TestSuiteResult(suiteName, [])
result.push(existingSuite) result.push(existingSuite)
} }
let existingGroup = existingSuite.groups.find(group => group.name === groupName) let existingGroup = existingSuite.groups.find(existingGroup => existingGroup.name === groupName)
if (existingGroup === undefined) { if (existingGroup === undefined) {
existingGroup = new TestGroupResult(groupName, []) existingGroup = new TestGroupResult(groupName, [])
existingSuite.groups.push(existingGroup) existingSuite.groups.push(existingGroup)