Skip to content

Commit

Permalink
Merge pull request #60 from samuelpcabral/test/first_test
Browse files Browse the repository at this point in the history
Edit GitHub Action and CONTRIBUTING.md
  • Loading branch information
samuelpcabral authored Aug 22, 2024
2 parents 0bb1b6f + bb7a493 commit 8ee1e2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Run LocalStack And Execute Keyword Tests

on:
push:
branches:
- master
- 'test/**'
pull_request:
branches:
- master

jobs:
run-localstack-and-robot:
Expand Down
10 changes: 8 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ To start localstack just run inside localstack folder:
docker-compose up -d
```
Then you can use inside robot, the endpoint http://localhost:4566
see some examples in /tests/robot folder

I only tested this docker on Ubuntu, if you use other system and got some error, fell free to fix and send some pull request.

### Robot Framework

Expand Down Expand Up @@ -76,9 +79,12 @@ robot -d log -L TRACE tests/robot/s3.robot
robot -d log -L TRACE -i s3 tests/robot
```

### GitHub Actions

If you don´t have the environment to test the Library, you can fork the project and create the branch inside the folder
test. Like "test/my-branch" then after do a push the GitHub actions will start the tests.

### TO-DO

- [x] Create CloudWatch and DynamoDB in localstack and create robot tests
- [x] Create GitHub actions to run the tests in push and merges.
- [ ] Add more services in library and in localstack
- [ ] Add robot tests for this new services

1 comment on commit 8ee1e2c

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
20 0 0 20 100 36.813520999s

Passed Tests

Name ⏱️ Duration Suite
Test Wait For Log 0.131 s Cloudwatch
Test Log Insights 30.069 s Cloudwatch
Test Put And Query Item 0.231 s Dynamo
Test Delete And Update Key 0.182 s Dynamo
Test Delete And Update Nested Key 0.081 s Dynamo
Test Delete Item 0.070 s Dynamo
Test Insert New Key 0.082 s Dynamo
Test Put And Query Item With Sort Key 0.081 s Dynamo
Test Delete And Update Key With Sort Key 0.134 s Dynamo
Test Upload And List 0.194 s S3
Test Upload And List With Folder 0.066 s S3
Test Remove And List With Prefix 0.081 s S3
Test Download 0.042 s S3
Test Get Content 0.034 s S3
Test Copy 0.054 s S3
Test Metadata 0.034 s S3
Send and Receive Message 0.127 s Sqs
Send and Receive Messages 0.082 s Sqs
Invalid Queue Name 0.010 s Sqs
Delete Messages 5.027 s Sqs

Please sign in to comment.