Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jbuduoo patch 1 #1

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
16 changes: 16 additions & 0 deletions .github/workflows/cypress01.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Cpress Test

on: [push]

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install --save-dev start-server-and-test
- run: npm install -g yarn
- run: yarn --version
- run: yarn cy:run

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# cypressCIDemo
Showcase of Cypress





參考資料:https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs
14 changes: 11 additions & 3 deletions cypress/integration/first-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ describe('第一个用例', () => {
expect(1).to.equal(1)
})

it('[smoke]测试 Module API', () => {
expect(2).to.equal(1)
})
// it('[smoke]测试 Module API', () => {
// expect(2).to.equal(1)
// })

// it('[smoke]测试 Module API', () => {
// expect(2).to.equal(1)
// })

// it('[smoke]测试 Module API', () => {
// expect(2).to.equal(1)
// })
})
2 changes: 1 addition & 1 deletion cypress/integration/third-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ describe('第 3 个用例', () => {
it('[smoke]测试 Module API', () => {
expect('iTesting').to.equal('iTesting')
})
})
})

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified cypress/videos/first-spec.js.mp4
Binary file not shown.
Binary file added cypress/videos/second-spec.js.mp4
Binary file not shown.
Binary file added cypress/videos/third-spec.js.mp4
Binary file not shown.
Loading