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

feat: implement playwright for browser compatibility testing #1182

Closed

Conversation

danielbate
Copy link
Contributor

@danielbate danielbate commented Aug 10, 2023

Proof of concept implementation of browser compatibility testing for #284

@danielbate danielbate self-assigned this Aug 16, 2023
@github-actions
Copy link
Contributor

Coverage Report

Coverage after merging db/feat/implement-browser-testing-with-runner-groups into master will be
84.75%▴ +2.61%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
apps/demo-typegen/src/generated-types
   DemoContractAbi.hex.ts100%100%100%100%
   index.ts100%100%100%100%
apps/demo-typegen/src/generated-types/factories
   DemoContractAbi__factory.ts76.92%0%66.67%88.89%51, 62
apps/docs-snippets/projects
   index.ts100%100%100%100%
apps/docs-snippets/src
   utils.ts96.43%75%100%100%21
internal/check-tests/src
   index.ts71.43%66.67%50%80%1, 10–11, 14, 9
packages/abi-coder/src
   abi-coder.ts92.71%88.89%87.50%94.29%128, 49, 86–87, 96–97
   constants.ts100%100%100%100%
   function-fragment.ts77.31%63.64%81.82%80%109–111, 133–134, 140–142, 145, 145, 147, 147, 149, 167, 169–170, 172, 180, 188, 193–194, 84, 96
   index.ts58.97%100%15.79%100%
   interface.ts66.67%50%76.47%68.29%100, 103, 105, 109, 64, 66, 66–67, 70, 79, 81–82, 91, 91, 91, 93, 97–98, 98–99
   resolved-abi-type.ts98.23%100%94.74%98.51%23
   utilities.ts96.34%92.86%91.67%98.21%110, 148
packages/abi-coder/src/coders
   abstract-coder.ts100%100%100%100%
   array.ts100%100%100%100%
   b256.ts100%100%100%100%
   b512.ts100%100%100%100%
   boolean.ts100%100%100%100%
   enum.ts100%100%100%100%
   number.ts100%100%100%100%
   option.ts100%100%100%100%
   string.ts100%100%100%100%
   struct.ts100%100%100%100%
   tuple.ts100%100%100%100%
   u64.ts100%100%100%100%
   vec.ts100%100%100%100%
packages/abi-typegen/src
   AbiTypeGen.ts100%100%100%100%
   cli.ts100%100%100%100%
   index.ts100%100%100%100%
   runTypegen.ts100%100%100%100%
packages/abi-typegen/src/abi
   Abi.ts100%100%100%100%
packages/abi-typegen/src/abi/configurable
   Configurable.ts100%100%100%100%
packages/abi-typegen/src/abi/functions
   Function.ts100%100%100%100%
packages/abi-typegen/src/abi/types
   AType.ts100%100%100%100%
   ArrayType.ts100%100%100%100%
   B256Type.ts100%100%100%100%
   B512Type.ts100%100%100%100%
   BoolType.ts100%100%100%100%
   EnumType.ts100%100%100%100%
   EvmAddressType.ts100%100%100%100%
   GenericType.ts100%100%100%100%
   OptionType.ts100%100%100%100%
   RawUntypedPtr.ts100%100%100%100%
   StrType.ts100%100%100%100%
   StructType.ts100%100%100%100%
   TupleType.ts100%100%100%100%
   U16Type.ts100%100%100%100%
   U32Type.ts100%100%100%100%
   U64Type.ts100%100%100%100%
   U8Type.ts100%100%100%100%
   VectorType.ts100%100%100%100%
packages/abi-typegen/src/templates
   renderHbsTemplate.ts100%100%100%100%
packages/abi-typegen/src/templates/common
   _header.hbs100%100%100%100%
   common.hbs100%100%100%100%
   common.ts100%100%100%100%
   index.hbs100%100%100%100%
   index.ts100%100%100%100%
packages/abi-typegen/src/templates/contract
   bytecode.hbs100%100%100%100%
   bytecode.ts100%100%100%100%
   dts.hbs100%100%100%100%
   dts.ts100%100%100%100%
   factory.hbs100%100%100%100%
   factory.ts100%100%100%100%
packages/abi-typegen/src/templates/predicate
   factory.hbs100%100%100%100%
   factory.ts100%100%100%100%
packages/abi-typegen/src/templates/script
   factory.hbs100%100%100%100%
   factory.ts100%100%100%100%
packages/abi-typegen/src/templates/utils
   formatConfigurables.ts100%100%100%100%
   formatEnums.ts100%100%100%100%
   formatImports.ts100%100%100%100%
   formatStructs.ts100%100%100%100%
packages/abi-typegen/src/types/enums
   ProgramTypeEnum.ts100%100%100%100%
   TargetEnum.ts100%100%100%100%
packages/abi-typegen/src/utils
   assembleContracts.ts100%100%100%100%
   assemblePredicates.ts100%100%100%100%
   assembleScripts.ts100%100%100%100%
   collectBinFilePaths.ts100%100%100%100%
   extractStructName.ts100%100%100%100%
   findType.ts100%100%100%100%
   makeConfigurable.ts100%100%100%100%
   makeFunction.ts100%100%100%100%
   makeType.ts100%100%100%100%
   parseConfigurables.ts100%100%100%100%
   parseFunctions.ts100%100%100%100%
   parseTypeArguments.ts100%100%100%100%
   parseTypes.ts100%100%100%100%
   shouldSkipAbiType.ts100%100%100%100%
   supportedTypes.ts100%100%100%100%
   validateBinFile.ts100%100%100%100%
packages/address/src
   address.ts80.95%54.55%82.35%88.57%165, 165, 165, 174, 174, 174, 34–35, 75
   utils.ts87.50%84.62%90.91%87.50%120, 120–121, 124, 124–125, 128
packages/crypto/src
   index.ts100%100%100%100%
packages/crypto/src/node
   aes-ctr.ts100%100%100%100%
   bufferFromString.ts100%100%100%100%
   encryptJsonWalletData.ts100%100%100%100%
   index.ts100%100%100%100%
   randomBytes.ts100%100%100%100%
   stringFromBuffer.ts100%100%100%100%
packages/crypto/src/shared
   index.ts100%100%100%100%
   keccak256.ts100%100%100%100%
   scrypt.ts100%100%100%100%
packages/errors/src
   error-codes.ts100%100%100%100%
   fuel-error.ts100%100%100%100%
   index.ts100%100%100%100%
packages/errors/src/test-utils
   expect-to-throw-fuel-error.ts100%100%100%100%
packages/fuels/src
   cli.ts100%100%100%100%
   index.ts100%100%100%100%
packages/hasher/src
   hasher.ts71.43%44.44%100%72.73%100, 104–107, 53, 53, 70, 74, 78–80, 83, 90, 90, 90, 93–95, 99
packages/hdwallet/src
   hdwallet-spec.ts100%100%100%100%
   hdwallet.ts91.25%80.39%100%95.79%117–118, 180–181, 219, 22, 22, 24, 26, 39, 42–43, 86–87
packages/math/src
   bn.ts85%85.37%78.79%87.21%110, 114, 165, 169, 173, 177, 181, 219–220, 237, 239, 263, 72–73, 83–84, 91
   configs.ts100%100%100%100%
   decimal.ts75%46.15%100%100%20, 5, 5, 5, 7, 7, 7
   functional.ts100%100%100%100%
packages/merkle/src/binary
   binaryMerkleTree.ts94.94%71.43%100%97.01%110, 113, 72–73
packages/merkle/src/binary/types
   node.ts100%100%100%100%
packages/merkle/src/common
   common.ts100%100%100%100%
   cryptography.ts100%100%100%100%
   index.ts100%100%100%100%
packages/merkle/src/sparse
   deepSparseMerkleSubTree.ts71.43%66.67%60%75%13–14, 20–21, 37–38
   proofs.ts81.97%63.64%100%85.11%25, 27, 27, 27–28, 31–32, 32, 34, 36–37
   sparseMerkleTree.ts88.82%77.50%100%91.60%105–106, 116, 118, 126, 128–129, 131, 139, 139, 143–144, 147, 161–162, 277, 280, 98–99
   treeHasher.ts100%100%100%100%
   utils.ts100%100%100%100%
packages/merkle/src/sparse/types
   sparseCompactMerkleProof.ts100%100%100%100%
   sparseMerkleProof.ts100%100%100%100%
packages/merkle/src/sum
   sumMerkleTree.ts96.20%83.33%100%97.06%134, 138–139
packages/merkle/src/sum/types
   node.ts100%100%100%100%
   proof.ts100%100%100%100%
packages/mnemonic/src
   mnemonic-specs.ts100%100%100%100%
   mnemonic.ts96.40%88%100%98.57%182–183, 198, 84
   utils.ts77.89%56.25%100%80.56%17, 20, 20, 20–22, 24, 24, 24, 24–25, 29–33, 35–37, 62–63
packages/predicate/src
   predicate.ts69.74%53.85%77.78%72.22%124, 155, 155–156, 182, 184–185, 185–186, 191, 191–192, 195–196, 196–197, 200, 202, 204, 207, 210
packages/predicate/src/utils
   getPredicateRoot.ts100%100%100%100%
   index.ts100%100%100%100%
packages/program/src
   configs.ts100%100%100%100%
   contract-call-script.ts14.39%0%0%20.88%100–102, 105–106, 112, 112, 112, 118, 120, 120, 120, 120, 125, 125–126, 129, 133, 135–137, 139, 139–140, 142, 142–143, 145, 145–147, 147, 147, 147–148, 151, 154, 157, 165,

@danielbate danielbate force-pushed the db/feat/implement-browser-testing-with-runner-groups branch from 58b8e18 to 751ec4a Compare August 30, 2023 09:34
@danielbate
Copy link
Contributor Author

I've done a more complete writeup of progress so far in #284 (comment)

…/feat/implement-browser-testing-with-runner-groups
@danielbate danielbate force-pushed the db/feat/implement-browser-testing-with-runner-groups branch from fef7c7a to 0549bbe Compare August 30, 2023 13:40
@danielbate
Copy link
Contributor Author

Closing as playwright was found to not be a suitable alternative as has been superseded by the investigation in #1310. However the approach to grouping, coverage merging and CI can be taken across.

@danielbate danielbate closed this Oct 3, 2023
@danielbate danielbate deleted the db/feat/implement-browser-testing-with-runner-groups branch February 22, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants