Skip to content

Commit

Permalink
Fix for windows paths for debug filter
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensplayer committed Jan 18, 2023
1 parent 1a35da7 commit 1a31dd5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/app/src/runner/unifiedRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useSpecStore } from '../store'
import { useSelectorPlaygroundStore } from '../store/selector-playground-store'
import { RUN_ALL_SPECS, RUN_ALL_SPECS_KEY, SpecFile } from '@packages/types/src'
import { LocationQuery, useRoute } from 'vue-router'
import { getPathForPlatform } from '../paths'
import { getPathForPlatform, posixify } from '../paths'
import { isEqual } from 'lodash'
import { gql, useMutation } from '@urql/vue'
import { TestsForRunDocument } from '../generated/graphql'
Expand Down Expand Up @@ -62,7 +62,8 @@ export function useUnifiedRunner () {
}

if (route.query.mode && route.query.mode === 'debug') {
const res = await testsForRunMutation.executeMutation({ spec: activeSpecInSpecsList.relative })
const posixPath = posixify(activeSpecInSpecsList.relative)
const res = await testsForRunMutation.executeMutation({ spec: posixPath })

specStore.setTestFilter(res.data?.testsForRun?.length ? res.data.testsForRun : undefined)
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/schemas/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ type Mutation {

"""Return the set of test titles for the given spec path"""
testsForRun(
"""Spec path relative to the project"""
"""Spec path relative to the project in posix format"""
spec: String!
): [String!]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ export const mutation = mutationType({
description: 'Return the set of test titles for the given spec path',
args: {
spec: nonNull(stringArg({
description: 'Spec path relative to the project',
description: 'Spec path relative to the project in posix format',
})),
},
resolve: (source, args, ctx) => {
Expand Down

5 comments on commit 1a31dd5

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1a31dd5 Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.4.0/linux-arm64/feature/IATR-M0-1a31dd59ef5b8189fcc585050d2a85d36c918e9b/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1a31dd5 Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.4.0/linux-x64/feature/IATR-M0-1a31dd59ef5b8189fcc585050d2a85d36c918e9b/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1a31dd5 Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.4.0/darwin-arm64/feature/IATR-M0-1a31dd59ef5b8189fcc585050d2a85d36c918e9b/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1a31dd5 Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.4.0/darwin-x64/feature/IATR-M0-1a31dd59ef5b8189fcc585050d2a85d36c918e9b/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1a31dd5 Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.4.0/win32-x64/feature/IATR-M0-1a31dd59ef5b8189fcc585050d2a85d36c918e9b/cypress.tgz

Please sign in to comment.