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

Add documentation about icetea testcases #8073

Merged
merged 1 commit into from
Sep 22, 2018

Conversation

jarlamsa
Copy link
Contributor

Description

Add test case descriptions to mbed-os for Icetea tests.
These were asked here: #8065

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[x] Functionality change
[ ] Breaking change

@jarlamsa
Copy link
Contributor Author

@OPpuolitaival @SeppoTakalo @MarceloSalazar @0xc0170 please review

This folder contains netsocket tests for Icetea
The tests located under this folder are dependent of the application [socket_app](https://github.com/ARMmbed/mbed-os/blob/master/TEST_APPS/device/socket_app)

The test cases under this folder are defined in [Network Socket test plan](https://github.com/ARMmbed/mbed-os/blob/master/TESTS/netsocket/README.md)

Choose a reason for hiding this comment

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

@SeppoTakalo , can you help us to review this please?
The "Network Socket test plan" does not have references to Icetea, so I don't see the relationship with doc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Originally it did not refer to any testing tool, but since then I have added instructions of how to build existing test cases.
Icetea release was pending, so I could not add reference to this.
However, testcases are exactly same, so this sentence here is correct.
Only the test plan needs updating, but that is ongoing maintaining work for us to keep it up to date.

Choose a reason for hiding this comment

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

As a user, I still don't understand how to run the Icetea test cases with the network sockets.
@jarlamsa @SeppoTakalo can we add a line explaining how to run the test cases?

We have this today (greentea):
mbed test --compile -t <toolchain> -m <target> -n mbed-os-tests-network-*,mbed-os-tests-netsocket*

I assume this is the corresponding command to use icetea but I'm not 100% sure.

mbed test --compile -t <toolchain> -m <target> -n mbed-os-tests-network-*,mbed-os-tests-netsocket* --icetea

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is already a readme about running the icetea tests in the root of TEST_APPS -folder
https://github.com/ARMmbed/mbed-os/blob/master/TEST_APPS/readme.md

Choose a reason for hiding this comment

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

Ok, that's good.
@SeppoTakalo , I assume every test case (mbed-os-tests-network-*,mbed-os-tests-netsocket*) can be used with Icetea. If that's the case, I'd be happy to close this item.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only test cases done with Icetea can be used with Icetea, those are located under TEST_APPS/testcases, test cases done with Greentea can be used with Greentea, those are located under TESTS. The test plan needs information about used test framework for each test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.
Some testcases exist only in Greentea, some exist only in Icetea.
All testcases exist in the test plan, and the selection of tool is based on requirement of the testcase.

For demonstration purposes some testcases exist on both, so that the differences can be studied.

@MarceloSalazar
Copy link

@jarlamsa thanks for the PR. It's looking good.

@cmonr
Copy link
Contributor

cmonr commented Sep 12, 2018

@jarlamsa thanks for the PR. It's looking good.

Taking this as an equivalent of a review checkmark.

/morph build

@mbed-ci
Copy link

mbed-ci commented Sep 12, 2018

Build : SUCCESS

Build number : 3054
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8073/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Sep 12, 2018

@jarlamsa
Copy link
Contributor Author

Added information about the disabled exampleapp and how to enable it if wanted to.

@mbed-ci
Copy link

mbed-ci commented Sep 12, 2018

@cmonr
Copy link
Contributor

cmonr commented Sep 12, 2018

@jarlamsa @SeppoTakalo @MarceloSalazar Is this now good to go? As a reminder, CI results are invalidated if the commit hash changes.

And we're aware of how silly it is to run CI on a docs-only PR, but that's what we do for now.

@jarlamsa
Copy link
Contributor Author

I think it is, @MarceloSalazar @SeppoTakalo @OPpuolitaival do you have anything to add?

@MarceloSalazar
Copy link

@jarlamsa , all,
Thanks for the enhancements, this is great!
I'm happy for this ticket to be closed.

@cmonr
Copy link
Contributor

cmonr commented Sep 13, 2018

I'm happy for this ticket to be closed.

Making sure, this superceedes #8065 correct?

@cmonr
Copy link
Contributor

cmonr commented Sep 22, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Sep 22, 2018

Build : SUCCESS

Build number : 3125
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8073/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Sep 22, 2018

@mbed-ci
Copy link

mbed-ci commented Sep 22, 2018

@cmonr cmonr merged commit c5f2d16 into ARMmbed:master Sep 22, 2018
@cmonr cmonr removed the needs: CI label Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants