Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Functional tests rewrite #678

Closed
23 of 24 tasks
diego-G opened this issue Jul 20, 2017 · 3 comments
Closed
23 of 24 tasks

Functional tests rewrite #678

diego-G opened this issue Jul 20, 2017 · 3 comments

Comments

@diego-G
Copy link

diego-G commented Jul 20, 2017

With the new Websocket peer protocol and the incoming API refactoring, it is time to create a cleaner testsuite for functional tests.

  • First, we set the next tree folder:
.
+-- test
|   +-- functional
|   |   +-- http
|   |   |   +-- get
|   |   |   +-- post
|   |   +-- ws
  • Second, we move the current test/api/transport/ files to test/functional/ws/.

  • Third, we move the current test/api/ files to test/functional/http/get/ and we review them in order to leave an skeleton sign for the uncovered parts.

  • Fourth, we separate post tests from those files, grouping them per transaction type in files placed onto test/functional/http/post/ folder. Each of them will follow the next workflow template:

    1. Schema validations
    2. Transactions processing
    3. Unconfirmed state
    4. Confirmation:
      • Before new block
      • After new block
    5. Validation
    6. Confirm validation

Due to its extensive nature, we create a task list which will lead to several pull request to solve the whole issue:


test/functional/http/get/


test/functional/http/post/


test/

This issue follows #457 in the task list from #225.

@willclarktech
Copy link
Contributor

I would love to get involved in this discussion as I have a lot of strong opinions about functional tests.

@Isabello
Copy link
Contributor

Looks like a great idea.

@diego-G
Copy link
Author

diego-G commented Aug 1, 2017

As discussed with Oliver, I've changed the structure of the workflow template adding the enforcing phase for types 1 and 4. On the other hand, I will add more tests in the schema phase instead of simply relaying on lisk-js. This will assure the core's api integrity to all the users even for them which won't use lisk-js.

Isabello pushed a commit that referenced this issue Nov 1, 2017
Functional test type 4 - Subtask #678 - Close #846
Isabello pushed a commit that referenced this issue Nov 1, 2017
Functional test tx type 5 - Subtask #678 - Close #902
@Isabello Isabello added parent and removed hard labels Nov 2, 2017
karmacoma added a commit that referenced this issue Nov 6, 2017
Add functional tests for additional data field & offset - Subtask #678 - Closes #912
karmacoma added a commit that referenced this issue Nov 17, 2017
Functional test tx type 6 - Subtask #678 - Closes #935
karmacoma added a commit that referenced this issue Nov 19, 2017
Functional test tx type 7 - Subtask #678 - Closes #936
karmacoma added a commit that referenced this issue Nov 22, 2017
…pe_1

Decouple validation phase for functional test tx type 1 - Subtask #678 - Closes #978
karmacoma added a commit that referenced this issue Nov 22, 2017
…pe_4

Decouple validation phase for functional test tx type 4 - Subtask #678 - Closes #979
karmacoma added a commit that referenced this issue Nov 22, 2017
…e_tx_1

Decouple unconfirmed phase from functional test tx type 1 - Subtask #678 - Closes #1009
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants